From 2036b0d551611e5ff034818a64b4d1991ee6fbe0 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Fri, 2 May 2014 10:09:40 -0400 Subject: [PATCH] Fix API login after I7c957e1e Prior to change I7c957e1e, API logins were done as if the "keep me logged in" checkbox was checked. That change altered this for no apparent reason. Bug: 64727 Change-Id: I7fcca2a1eabcac3b2c232cd05d9989af85cc3ed0 --- includes/api/ApiLogin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiLogin.php b/includes/api/ApiLogin.php index f2a9d1a1ab..46e2a53d72 100644 --- a/includes/api/ApiLogin.php +++ b/includes/api/ApiLogin.php @@ -86,7 +86,7 @@ class ApiLogin extends ApiBase { case LoginForm::SUCCESS: $user = $context->getUser(); $this->getContext()->setUser( $user ); - $user->setCookies( $this->getRequest() ); + $user->setCookies( $this->getRequest(), null, true ); ApiQueryInfo::resetTokenCache(); -- 2.20.1